package com.game;

import javax.swing.ImageIcon;
import javax.swing.JButton;

//图片按钮
public class GameButton extends JButton {

	private int btnIndex;//按钮在pannel中的索引
	private boolean hasIcon;//是否有图片 true 有
	
	public GameButton(){}
	public GameButton(ImageIcon image){
		super(image);
	}
	public int getBtnIndex() {
		return btnIndex;
	}
	public void setBtnIndex(int btnIndex) {
		this.btnIndex = btnIndex;
	}

	public void setHasIcon(boolean hasIcon) {
		this.hasIcon = hasIcon;
	}
	public boolean getHasIcon(){
		return this.hasIcon;
	}


	

	
}
